package vista;

import javax.swing.JFrame;

public class VentanaAplicacion extends JFrame {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
		private static int ANCHO = 800;
		private static int ALTO = 600;
	
      private static VentanaAplicacion ventana;

   	public static VentanaAplicacion obtenerVentana() {
		if (ventana == null)
			ventana = new VentanaAplicacion();
		return ventana;
	}
        

    public int getAncho(){
    	return ANCHO;
    }
   	
    public int getAlto(){
    	return ALTO;
    }
    
   	private VentanaAplicacion() {

		this.setSize(ANCHO,ALTO);
		
		setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
		
		this.setResizable(false);
		
		add(new VistaInicial(ANCHO,ALTO));
		
		setLocationRelativeTo(null);
		setTitle("Algo42");

	}

 
   	
} 